//
//  Person.m
//  09-HomeWork
//
//  Created by dllo on 16/7/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Person.h"
//extension
@interface Person ()
@property (nonatomic, copy)NSString *loginUser;
- (void)beginLogin;
- (void)loginng;
- (void)logined;
@end
@implementation Person
- (void)setFriends:(NSArray *)friends {
    if (friends == nil) {
        _friends = [NSArray array];
        return;
    }
    _friends = friends;
}
- (void)beginLogin {
    NSLog(@"%@开始登录",self.name);
}
- (void)loginng {
    NSLog(@"%@正在登录",self.name);
}
- (void)logined {
    NSLog(@"%@已经登录",self.name);
}
- (void)Login {
    [self beginLogin];
    [self loginng];
    [self logined];
   }
@end
